package com.jrx.anytxn.param.job.paph.step;

import com.jrx.anytxn.param.entity.TlFilePaymentLog;
import com.jrx.anytxn.param.mapper.ext.ExtTlFilePaymentLogMapper;
import org.springframework.batch.item.ItemWriter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RepayResultWriter implements ItemWriter<TlFilePaymentLog> {
    @Autowired
    ExtTlFilePaymentLogMapper extTlFilePaymentLogMapper;
    @Override
    public void write(List<? extends TlFilePaymentLog> item) throws Exception {
        //插入数据库
        extTlFilePaymentLogMapper.batchInsert((List<TlFilePaymentLog>) item);

    }
}
